import request from '@/utils/request'
export const reqGetDepts = () => request.get('/company/department')

export const reqGteSimpl = () => request.get('/sys/user/simple')

export const reqaddDeP = (obj) => request.post('/company/department', obj)

// 查询部门id
export const reqGteEdit = (id) => request.get(`/company/department/${id}`)

// 更新部门信息
export const requpdataEdit = (data) => request.put(`/company/department/${data.id}`, data)
// export const requpdataEdit = data => request({
//   method: 'put',
//   url: `/company/department/${data.id}`,
//   data
// })

// 删除口
export const reqdeleEdit = (id) => request.delete(`/company/department/${id}`)
